package com.rem.bootnacos.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author Rem
 * @date 2021/3/18
 */

@Component
@Data
@ConfigurationProperties(prefix = "person")
public class Person {

    private String userName;

    private Boolean boss;

    private Date birth;

    private Integer age;

    private Pet pet;

    private String[] interests;

    private List<String> animal;

    private Map<String, Object> score;

    private Set<Double> salarys;

    private Map<String, List<Pet>> allPets;


    @Data
    static class Pet {

        private String name;

        private Integer weight;
    }

}